package com.business.business.web.web;

import cn.hutool.json.JSONObject;
import com.business.business.common.base.BaseController;
import com.business.business.support.annotaion.Action;
import com.business.business.support.model.RespEntity;
import com.business.business.web.service.LegaldocumentsService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@Action
@RequestMapping(value="/legaldocuments")
//合法性文件
public class LegaldocumentsController extends BaseController {
    @Resource
    public LegaldocumentsService legaldocumentsService;
    @RequestMapping(value = "/legaldocumentsAdd",method = RequestMethod.POST)
    /*
     * @Author LiHaoDong
     * @Description 合法性文件新增
     * @Date 16:03 2020/7/18
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    public RespEntity rulesandregulationsAdd(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{

        return legaldocumentsService.legaldocumentsAdd(jsonParam);
    }

    /*
     * @Author LiHaoDong
     * @Description 合法性文件列表
     * @Date 14:54 2020/7/18
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/legaldocumentsListPage",method = RequestMethod.GET)
    public RespEntity legaldocumentsListPage(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return legaldocumentsService.legaldocumentsListPage(jsonParam);
    }

    /*
     * @Author LiHaoDong
     * @Description 合法性文件详情
     * @Date 15:18 2020/7/18
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/legaldocumentsDetail",method = RequestMethod.GET)
    public RespEntity legaldocumentsDetail(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return legaldocumentsService.legaldocumentsDetail(jsonParam);
    }

    /*
     * @Author LiHaoDong
     * @Description 合法性文件修改
     * @Date 16:04 2020/7/18
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/legaldocumentsUpdate",method = RequestMethod.POST)
    public RespEntity legaldocumentsUpdate(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return legaldocumentsService.legaldocumentsUpdate(jsonParam);
    }

    /*
     * @Author LiHaoDong
     * @Description 合法性文件删除
     * @Date 16:22 2020/7/18
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/legaldocumentsDelete",method = RequestMethod.POST)
    public RespEntity legaldocumentsDelete(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return legaldocumentsService.legaldocumentsDelete(jsonParam);
    }


}
